package ca.uwaterloo.mylongcall;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;

public class ManageCardsActivity extends Activity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		//final SP spmanager = new SP();
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_managecards);
		final EditText preet = (EditText) findViewById(R.id.prefix);
		final EditText pinet = (EditText) findViewById(R.id.pinnum);
		Button addcard = (Button) findViewById(R.id.addthiscard);
		LinearLayout cardslayout = (LinearLayout) findViewById(R.id.cardslayout);
		cardslayout.setOrientation(LinearLayout.VERTICAL);
		addcard.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				String pre = preet.getText().toString();
				String pin = pinet.getText().toString();
				CallCard newcallcard = new CallCard(pre, pin);
				//spmanager.AddCallCard(newcallcard);
				finish();
			}
		});
	}
}
